package com.littlecar.web.remote;

import com.littlecar.common.entity.product.Product;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * 描述：
 *
 * @author littlecar
 * @date 2020/2/27 16:47
 */
@FeignClient(name="service",fallback = ProductHystrix.class)
public interface ProductRemote {
    @RequestMapping("/product/getAllProducts")
    public List<Product> getProducts(@RequestParam("type") String type);
}
